Git
$ sudo apt-get install git
RVM
Get RVM
$ curl -L https://get.rvm.io | bash -s stable --ruby
下載 Octopress
git clone git://github.com/imathis/octopress.git octopress
Deploying to Github Pages
rake setup_github_pages
//git@github.com:yume190/yume190.github.io.git
$ rake generate
$ rake deploy
寫文章
$ rake 'new_post["title"]'
預覽
rake generate # Generates posts and pages into the public directory
rake watch # Watches source/ and sass/ for changes and regenerates
rake preview # Watches, and mounts a webserver at http://localhost:4000
上傳
$ git add .
$ git commit -m "article:Github page + Octopress"
$ git push
$ rake deploy
Theme : 3rd Party Octopress Themes
$ cd octopress
$ git clone GIT_URL .themes/THEME_NAME
$ rake install['THEME_NAME']
$ rake generate
但是最終還是選擇了另外一個主題whiterspace,看起來相當舒服~~!
My Customize
加入table樣式Octopress Table Stylesheet
1 | //Add data-table.css to source/stylesheets/ |
1 | <link href="/stylesheets/data-table.css" media="screen, projection" rel="stylesheet" type="text/css" /> |
Some Questions
Disqus Comments Not Visible
以下兩個網站提供相當不錯的Troubleshooting,原本是以為_config.yml
的url
沒有設定好,最後盡然事沒有去官網註冊網址所照成的…
相關網站:
- 为Octopress修改主题和自定义样式
- Octopress 安裝教學、心得筆記 (Windows)
- Github Page + Octopress
- Setup an Octopress Blogging Environment
設定相關: